﻿import com.dmotiko.mirador.*
import com.dmotiko.general.*

class MiradorContactoUbicacion
extends MiradorSiteSection {
	
	public static var DANBRO:String = "ubicacion_danbro";
	public static var MIRADOR:String = "ubicacion_mirador";
	public static var MAP:String;	
		
	public static function setMAP( sMap:String ):Void {
		MAP = sMap;
	}
	
	private var mcMaps:MovieClip;
	
	function MiradorContactoUbicacion() {
		super( MiradorSite.getApp() );
		sName = MiradorSite.UBICACION;
		sectionChanged();
	}
			
	public function childLoaded( evnt ):Void {
		switch( evnt.target ) {
					
			case mcMaps:
			switch(MAP) {
				case DANBRO:
				mcMaps.gotoAndStop(3);
				setMAP(undefined);
				break;
				
				case MIRADOR:
				mcMaps.gotoAndStop(4);
				setMAP(undefined);
				break;
				
				default:
				mcMaps.gotoAndStop(2);
				break;
			}
			break;
			
		}
	}
	
}